package com.wuwei.aliocr.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentLoopMerge;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.omg.CORBA.IDLType;

import java.util.Date;

@Data
// 头背景设置成红色 IndexedColors.RED.getIndex()
@TableName("lessonsrecord")
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND,fillBackgroundColor = 1)
public class LessonRecord {
    @ExcelIgnore
    @TableId(type = IdType.AUTO)
    private Long id;

    @ColumnWidth(8)
    @ContentLoopMerge(eachRow = 4)
    @ExcelProperty(index = 0)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","班主任：","日期"})
    private Date date;

    @ColumnWidth(9)
    @ContentLoopMerge(eachRow = 4)
    @ExcelProperty(index = 1)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","班主任：","星期"})
    private String weekend;//表示星期几

    @ColumnWidth(5)
    @ContentLoopMerge(eachRow = 2)
    @ExcelProperty(index = 2)
    @TableField("morningOrAfternoon")
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","班主任：","时间"})
    private String morningOrAfternoon;

    @ColumnWidth(14)
    @ExcelProperty(index = 3)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","班主任：","时间"})
    private String time;

    @ColumnWidth(49)
    @ExcelProperty(index = 4)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","班主任：","课程内容"})
    private String subject;

    @ColumnWidth(7)
    @ExcelProperty(index = 5)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","联系方式：18805531938","学时"})
    private String hours;

    @ColumnWidth(11)
    @ExcelProperty(index = 6)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","联系方式：18805531938","课程类型"})
    private String type;

    @ColumnWidth(11)
    @ExcelProperty(index = 7)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","联系方式：18805531938","授课讲师"})
    private String teacher;


    @ColumnWidth(11)
    @ExcelProperty(index = 8)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","联系方式：18805531938","授课地点"})
    private String position;

    @ColumnWidth(11)
    @ExcelProperty(index = 9)
//    @ExcelProperty({"培训课表","控制编号：F02-001-02","2023年第3期（总第3期）PA执照培训课程表（M2模块）","2023年第3期（总第3期）PA执照培训课程表（M2模块）","联系方式：18805531938","备注"})
    private String remark;


}
